package com.sumainfor.pc.market.service;

import com.sumainfor.pc.market.dao.DmHousingInfoMapper;
import com.sumainfor.pc.market.feign.Zfeign.ZzuulFeign;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 查询房源详表配置
 */
@Service
public class DmHousingConService implements Serializable {

    private ReentrantLock lock = new ReentrantLock(false);

    Logger log = LoggerFactory.getLogger(DmHousingConService.class);// 日志

    @Autowired
    private DmHousingInfoMapper dmHousingInfoMapper;
    @Autowired
    private ZzuulFeign ZzuulFeign;
    /**
     *查询待定价的房源列表
     */
    public List<Map<String,Object>> getDmHousingInfoList(Map<String, Object> params){
        return dmHousingInfoMapper.getDmHousingInfoList(params);
    }
    /**
     * 查询待定价的房源列表总数
     */
    public Integer getDmHousingInfoListCount(Map<String, Object> params){
        return dmHousingInfoMapper.getDmHousingInfoListCount(params);
    }
}
